<%
if(session.getAttribute("username")==null)
{
%>
<script language="Javascript">
<!--
window.location.href='index.jsp';
// -->
</script>
<%
}
%>